/*
 * 组件注释
 * @Author: machinist_wq
 * @Date: 2022-09-04 13:24:14
 * @LastEditors: machinist_wq
 * @LastEditTime: 2022-09-04 14:03:48
 * @Description: orderFieldList组件
 * 人生无常！大肠包小肠......
 */
"use strict";
import { FC, Fragment, ReactElement } from "react";
import OrderFieldList from "@/component/orderFieldList";
import { basicCode, multipleCode } from "./codeConf";
import { OwnCollapse } from "..";

const dataSource = [
  {
    title: "发布时间",
    key: "assetPublishTime",
  },
  {
    title: "开始时间",
    key: "startTime",
  },
  {
    title: "数量",
    key: "count",
  },
];

const Index: FC = (): ReactElement => {
  return (
    <Fragment>
      <OrderFieldList dataSource={dataSource} />
      <OwnCollapse title="基本用法">{basicCode}</OwnCollapse>
      <OrderFieldList dataSource={dataSource} multiple />
      <OwnCollapse title="multiple模式">{multipleCode}</OwnCollapse>
    </Fragment>
  );
};
export default Index;
